package online.hxstart.code.java8.chapter04;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author huxing
 * @date 2019/6/21 星期五 16:24
 * @describe
 */
@Data
@AllArgsConstructor
public class Dish {

  /**
   * 名称
   */
  private final String name;

  /**
   * 蔬菜
   */
  private final boolean vegetarian;

  /**
   * 卡路里
   */
  private final int calories;

  /**
   * 类型
   */
  private Type type;

  public enum Type {
    MEAT, FISH, OTHER
  }
}
